package javabean;

public class StudentOperator
{
    //拿到学生信息
    private Student s;
    public StudentOperator(Student s)
    {
        this.s = s;
    }

    //提供方法
    public void printAllScore()
    {
        System.out.println(s.getName() + "的总成绩是：" + s.getChinese() + s.getMath());
    }

    public void printAverageScore()
    {
        System.out.println(s.getName() + "的平均成绩是：" +(s.getChinese() + s.getMath()));

    }
}
